const HTTP = require("./request");
const {url} = require("./config")

module.exports = {
  //轮播图
  getHomeBanner:function(){
    return HTTP({
    url:url+'/api/public/v1/home/swiperdata'
    })
  },
  //商品
  getHomeGoods:function(){
    return HTTP({
        url: url+"/api/public/v1/goods/search"
    })
},
//内容
getGoodsDetail:function(data){
  return HTTP({
      url: url+"/api/public/v1/goods/detail",
      data
  })
}
}